//
//  MJExtensionConfig.m
//  Contacts
////
//  Created by beisheng03 on 2017/10/21.
//  Copyright © 2017年 beisheng. All rights reserved.
//



#import "MJExtensionConfig.h"
#import "HomeDataModel.h"
#import "HomeSubModel.h"
#import "ProvinceModel.h"
#import "CitysModel.h"
#import "AddressInfoModel.h"
#import "OneGoodsModel.h"
#import "GoodsDetailModel.h"
#import "GoodsSpecListModel.h"
#import "HouseParameterModel.h"
#import "EmploymentListModel.h"
#import "HousRentAdvsModel.h"
#import "MarketHSubModel.h"
#import "MarketHomeModel.h"
#import "MyOrderSectionModel.h"
#import "OrderSureModel.h"

#import "PaymentSDSubModel.h"

@implementation MJExtensionConfig

+ (void)load
{
   
    [NSObject mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"descrip" : @"description"};
    }];
    
    
    [NSObject mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"ID" : @"id"};
    }];
    
    [EmploymentListModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"ID" : @"id"};
    }];
    
    [MarketHSubModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"ID" : @"id"};
    }];
    
    [HousRentAdvsModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"ID" : @"id"};
    }];
    
    
    
    
    [AddressInfoModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"addressID" : @"id"};
    }];
    
    
    [OneGoodsModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"goods_price" : @"price",
                 @"goods_image_url" : @"prc_cover_small"
                 };
    }];
    
    
    [HomeDataModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{@"goods" : @"HomeSubModel",
                 @"house" : @"HouseParameterModel",
                 @"advs" : @"HomeSubModel",
                 @"articles" : @"HomeSubModel",
                 @"tishi" : @"HomeSubModel",
                 @"huo" : @"HomeSubModel"
                 };
        
    }];

    
    [MarketHomeModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{@"advs" : @"MarketHSubModel",
                 @"articles" : @"MarketHSubModel",
                 @"tehui" : @"MarketHSubModel",
                 @"xianshi" : @"MarketHSubModel",
                 @"tuijianadvs" : @"MarketHSubModel",
                 @"tuijian" : @"MarketHSubModel"
                 };
        
    }];
    
    [MarketHSubModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"descrip" : @"description"};
    }];


    

    [HouseParameterModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{@"language" : @"HouseParameSub",
                 @"huxing" : @"HouseParameSub",
                 @"fukuan" : @"HouseParameSub",
                 @"rentingStyle" : @"HouseParameSub",
                 @"houseStyle" : @"HouseParameSub",
                 @"position" : @"HouseParameSub",
                 @"tag" : @"HouseParameSub",
                 @"yellowPagesClass" : @"HouseParameSub",
                 @"positionClass" : @"HouseParameSub",
                 @"networkSupplier" : @"HouseParameSub",
                 @"decorateStyle" : @"HouseParameSub"
                 };
        
    }];
    

    
    
    [GoodsDetailModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{@"spec_list" : @"GoodsSpecListModel",
                 @"sku_list" : @"GoodsSkuListModel",
                 @"goods_coupon_list" : @"GoodsCouponModel"
                 };
        
    }];
    
    
    [GoodsSpecListModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{
                 @"value" : @"GoodsSpecSubModel"
                 };
        
    }];
    
    
    [PaymentSDSubModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{
                 @"lists" : @"PaymentSDWModel"
                 };
        
    }];
    
    
    
    
    [OrderSureModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{
                 @"addresslist" : @"AddressInfoModel",
                 @"list" : @"OrderFGoddsListModel"
                 };
        
    }];
    
    
    [MyOrderSectionModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{
                 @"order_item_list" : @"MyOrderItemsModel",
                 @"member_operation" : @"PayButtonModel"
                 };
        
    }];
    
    
    
    


    
    
    

    
    [GoodsDetailModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"descrip" : @"description"};
    }];
    
    [HomeSubModel mj_setupReplacedKeyFromPropertyName:^NSDictionary *{
        return @{@"descrip" : @"description"};
    }];
    

    [ProvinceModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{
                 @"citys" : @"CitysModel"
                };
        
    }];
    

    [CitysModel mj_setupObjectClassInArray:^NSDictionary *{
        
        return @{
                 @"districts" : @"DistrictsModel"
                 };
        
    }];
    
    
    

}

@end
